/****************************************************************************************************/
/* First version of Maze Wars.  This is going to be a bare bones code environment that shows where  */
/* different objects and parts of our code need to go.  This basic framework will grow as we        */
/* are able to implement new features such as DirectPlay.  Right now this will get a basic window   */
/* that has Direct Input functionality for the keyboard and mouse, but since no code has been added */
/* it will do nothing except show a window and exit when you press esc.                             */
/*																									*/
/*			Michael Perry																			*/ 
/*			8/21/2007																				*/
/****************************************************************************************************/

//precompiled headers to include
#include <tchar.h>


#include <crtdbg.h>

//our classes and stuff to include
#include "d3dApp.h"
#include "MazeWars.h"


	
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, int showCmd)
{
	// Enable run-time memory check for debug builds.
	#if defined(DEBUG) | defined(_DEBUG)
		_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
	#endif

	

	srand ( time(NULL) );

	//this is the constructor for our class, right now about the only thing we shd change is the title of the 
	//window
	MazeWars app(hInstance, "Maze Wars", D3DDEVTYPE_HAL, D3DCREATE_HARDWARE_VERTEXPROCESSING);
	gd3dApp = &app;

	//Configure DInput here
	DInput di(DISCL_FOREGROUND | DISCL_NONEXCLUSIVE);
	gDInput = &di;

	
	return gd3dApp->run();

}

